<?php
namespace app\model\oa;

use app\model\BaseModel;

/**
 * 报销模型
 * 对应数据库表: oa_expense (报销表)
 */
class Expense extends BaseModel
{
    // 设置表名（不包含前缀）
    protected $name = 'expense';
    
    // 设置主键
    protected $pk = 'id';
    
    // 设置字段类型
    protected $type = [
        'cate_id' => 'integer',
        'cost' => 'float',
        'income_month' => 'integer',
        'expense_time' => 'datetime',
        'admin_id' => 'integer',
        'did' => 'integer',
        'project_id' => 'integer',
        'pay_status' => 'integer',
        'pay_admin_id' => 'integer',
        'pay_time' => 'datetime',
        'create_time' => 'int',
        'update_time' => 'int',
        'check_status' => 'integer',
        'check_flow_id' => 'integer',
        'check_step_sort' => 'integer',
        'check_time' => 'datetime',
        'belong_uid' => 'integer',
        'belong_did' => 'integer'
    ];

    // 可搜索字段
    protected $searchField = [
        'code',
        'admin_id',
        'did',
        'pay_status',
        'check_status'
    ];
}